<template>
    <div>
        <div v-html="data"></div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                data: ''
            }
        },
        created() {
        },
        mounted() {
           this.getPostDetail();
        },
        methods: {
            getPostDetail() {
                let id = this.$route.params.id;
                let that = this;
                this.api.getPostDetail(id).then(res => {
                    if (res.data) {
                        that.data = res.data;
                    }
                })
            }
        },
    }
</script>
<style scoped>


</style>
